
<div class="wrapMain">




	<div id="row">
		    <div class="col-md-8"> 
       <?php 
    	$title="";
		if(isset($_GET['ext'])){
			
			 switch($_GET['ext']){
			 	case 'date': $title='Mới Đăng ';break;
				case 'views': $title='Xem Nhiều ';  break;
				case 'comments': $title='Comment ';  break;
				case 'likes': $title='Likes '; break;
				case 'sochuong': $title='Nhiều Chương ';  break;
				case 'hoanthanh': $title=' Truyện Full ';break;
			 }
		}
		?>
		
                    	<ul class="breadcrumb-arrow">
                         <li><a href="<?php echo HOME; ?>"><i class="fa fa-home"></i></a></li>
                 		  <li><a href="<?php echo HOME; ?>truyen"> Truyện</a></li>
                          <?php if($title!=""){ echo "  <li class='active'><a href='".HOME."truyen/".$_GET['ext']."'>$title</a></li>";	  }?>
                     </ul>
                    
                  
       <?php if($_SESSION['mobile']==0){?>
        <!-- START TRUYEN DE CU -->
        <?php if(!isset($_GET['page']) && !isset($_GET['ext'])){?>
        <div class="panel panel-warning my-panel" id="decu-panel">
 		 <div class="panel-heading">
 		 <img class="image_type_title" src="<?= HOME; ?>/public/images/decu_title.png" alt="Truyện đề cử" />
         		<ul class="mn_nav">
            	<li class="li-list-cat"><a href="" class="active">Truyện Đề Cử</a></li>
              
                <li class="pull-right" >
                <div>
                <div id="decu-show-current-page" class="panel-show-current-page" style="">1</div>
               			<a href="#" class="btn btn-danger btn-xs btn-slider" id="decu-btn-slider-prev" data-rel="decu"> 
	                		<span class="glyphicon glyphicon-arrow-left"></span>
	                	</a> 
	                	<a href="#" class="btn btn-danger btn-sm btn-slider" id="decu-btn-slider-next" data-rel="decu"> 
	                		<span class="glyphicon glyphicon-arrow-right"></span>
	                	</a>
	                	
	                	<input type="hidden" id="decu-slider-total-page" name="decu-slider-total-page" value="<?= $data['decu_pages']; ?>" />
	                	<input type="hidden" id="decu-slider-current-page" name="decu-slider-current-page" value="1" />
                 </div>
                </li>
            </ul>
            <div class="clearfix"></div>
         </div>
  		<div class="panel-body" id="decu-wrapper" data-href="1">
  			<div class="wrap-loading" id="wrap-decu-loading" style="display: none;">
				<div class="loading" id="decu-loading"><img alt="loading" src="public/images/loading11.gif"></div><br>
			</div>
			<div id="decu-content-slide-1" class="decu-content">
          	<?php render_item_truyen($data['decu'],1); ?>
			</div>
  
  
  		</div> <!-- End of panel body -->
		</div> <!-- End of panel -->
		<?php } //End truyen de cu?>
        <!-- End truyen de cu -->
        <?php } //session mobile show de cu ?>
        
        <div class="row">
   			  <?php echo $data['nav']; ?>
              <?php $bu=HOME.'truyen/'; ?>
                      <div class="btn-group pull-right">
  <button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown">
   Lọc Truyện <span class="caret"></span>
  </button>
  <ul class="dropdown-menu" role="menu">
    <li><a href="<?php echo $bu ?>">Mới Cập Nhật</a></li>
    <li><a href="<?php echo $bu ?>date">Mới Đăng</a></li>
    <li><a href="<?php echo $bu ?>views">View</a></li>
    <li><a href="<?php echo $bu ?>likes">Like</a></li>
     <li><a href="<?php echo $bu ?>comments">Comment</a></li>
    <li><a href="<?php echo $bu ?>sochuong">Số Chương</a></li>
    <li><a href="<?php echo $bu ?>hoanthanh">Hoàn Thành</a></li>
   
  </ul>
</div>
  		 </div> <!-- End of Row -->
        <div style="height:15px"></div>
        <?php  render_item_truyen($data['info'],1); ?>
 	  	<?php echo $data['nav']; ?>
      
      
		


</div> <!-- COL MD 9 -->
  
                    <div class="col-md-4">
  <?php  render_fanpage(); ?>
<!-- START Render TRUYEN category -->	<?php truyen_render_theloai(); ?>	
<!-- START Render TRUYEN View -->	<?php truyen_render_view(); ?>	
<!-- START RENDER video comment --> <?php render_pick(); ?> <!-- End RENDER video comment --> 
<!-- START RENDER video Xem Nhieu -->     <?php blog_render_view(); ?>   <!-- end video xem nhieu -->
                	</div> <!-- End col -md -4 right -->




	
	</div><!-- end row -->
</div><!-- end wrapMain -->
<div class="clearfix"></div>